package com.gardenguell.salad.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.gardenguell.salad.R;
import com.gardenguell.salad.app.AppContext;
import com.gardenguell.salad.ui.activity.base.ToolbarActivity;

public class UserInfoActivity extends ToolbarActivity{

    @Override
    public boolean canBack() {
        return true;
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_user_info;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }


    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch(v.getId()){
            case R.id.change_account:
                prefUtil.clearAll();
                startActivity(new Intent(UserInfoActivity.this, LoginActivity.class));
                AppContext.getContext().finishAllActivity();
                break;
            default:
                break;
        }
    }

}
